home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1997 #3 / Amiga Plus CD - 1997 - No. 03.iso / pd / demo-versionen / maxoncpp4-demo / demo / supercode / window.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-01  |  655 b   |  39 lines

  1. //-------------------------------------
  2. //
  3. // SuperCode (c) 1996 by T.Kühn 
  4. //
  5. // Programmiersprache:    ANSI-C
  6. // Projektstart:            12.7.94
  7. //
  8. // Modul:                window.c
  9. //
  10. //-------------------------------------
  11.  
  12.  
  13.  
  14. //-------------------------------------
  15. #include <pragma/intuition_lib.h>
  16.  
  17. #include <Struct.h>
  18. //-------------------------------------
  19.  
  20.  
  21.  
  22.  
  23.  
  24. //-------------------------------------
  25. void window_close(struct Window *win,struct PrefWin *pref)
  26. {
  27.     if (pref)
  28.     {
  29.         pref->Xpos=win->LeftEdge;
  30.         pref->Ypos=win->TopEdge;
  31.         pref->WinW=win->Width;
  32.         pref->WinH=win->Height;
  33.     }
  34.     ClearMenuStrip(win);
  35.     CloseWindow(win);
  36. }
  37. //-------------------------------------
  38.  
  39.